import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class window12 extends JFrame {
	private String details;
	private JLabel statusbar;

	public window12() {
		super("this will be title");
		setVisible(true);
		setSize(400, 400);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		statusbar = new JLabel("this will be defalt");
		add(statusbar, BorderLayout.SOUTH);
		addMouseListener(new Mouseclass());
	}

	private class Mouseclass extends MouseAdapter {
		public void mouseClicked(MouseEvent event) {
			details = String.format(
					"you clicked %      `enter code here`clicks",
					event.getClickCount());
			if (event.isMetaDown()) {
				details += " with right button";
			} else if (event.isAltDown()) {
				details += " with center button";
			} else {
				details += " with left button";
			}
			statusbar.setText(details);
		}
	}

	public static void main(String[] args) {
		new window12();
	}
}